import request from "@/utils/request";

/**
 * 获取配置信息
 * @param params
 * @returns {Promise<any>}
 */
export async function getWebSite(params) {
  const options = {
    params: {
      name:params
    }
  }
  return request('/admin/setting',options)
}

/**
 * 更新
 * @param data
 * @returns {Promise<any>}
 */
export async function updateSetting(data) {
  const options = {
    data
  }
    return request.put('/admin/updateset',options)
}

